package com.ckjava.test.service;

import com.ckjava.test.dao.DataUserDao;
import com.ckjava.test.entity.DataUser;
import com.ckjava.test.service.base.BaseMybatisCrudService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DataUserService extends BaseMybatisCrudService<DataUserDao, DataUser> {

    public List<DataUser> findByGroup(String groupId) {
    	return dao.findByGroup(groupId);
    }
    
    public List<DataUser> findByName(String name) {
    	return dao.findByName(name);
    }
}